package com.ymatou.iapi.deviceid.service;

import java.util.ArrayList;
import java.util.List;

import com.ymatou.iapi.couponservice.parameter.UserList;
import com.ymatou.iapi.couponservice.parameter.batchInfos;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*根据设备号获取用户列表Call
*FreeMaker Template自动生成代码
*/
public class GetUserIdListCall extends YmatouBaseCall{
	private static String opurl ="getUserIdList";
	
	public GetUserIdListCall() {
		super(EnvSetup.getSystemUrl("deviceid"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public String getCode()
	{
	    return getString("code");
	}
	
	public String getBCode()
	{
	    return getString("bcode");
	}
	
	public String getMSG()
	{
	    return getString("msg");
	}
	
	public String getData()
	{
	    return getString("data");
	}
	
	public UserList getUserList()
	{
		UserList data = null;
		try {
			data = (UserList) FormatUtil.GSONToObject(getReturnData(), UserList.class);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return data;
	}
}